/**
 * Copyright (c) 2014-2016 www.nryuncang.com. All Rights Reserved.
 */
package com.topisv.tms.service.task;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Service;

import com.topisv.tms.mybatis.Pagination;
import com.topisv.tms.mybatis.service.CommonService;
import com.topisv.tms.utils.DateUtils;
import com.topisv.tms.vo.interfacetask.WorkOrderResendVo;

/**
 * 
 *
 * @author yuansheng
 * @version 1.0.0
 */
@Service
public class WorkOrderResendService extends CommonService {

    public Pagination getPageWorkOrderResend(WorkOrderResendVo vo) throws Exception {
        // 修改日期
        String toTime = vo.getToTime();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date tomorrow = DateUtils.getDateDayAdd(sdf.parse(toTime), 1);
        vo.setToTime(sdf.format(tomorrow));
        Pagination page = myBatisPage("workOrderResendMapper.getCount", "workOrderResendMapper.getList", vo);
        return page;
    }

}
